package service.impl;

import bean.ScreeningSchedule;
import dao.ScreeningScheduleDao;
import dao.impl.ScreeningScheduleDaoImpl;
import service.ScreeningScheduleService;

import java.util.List;

public class ScreeningScheduleServiceImpl implements ScreeningScheduleService {
    private ScreeningScheduleDao screeningScheduleDao = new ScreeningScheduleDaoImpl();
    @Override
    public List<ScreeningSchedule> getScreeningSchedulesByMovieId(int movieId) {
        return screeningScheduleDao.getScreeningSchedulesByMovieId(movieId);
    }

    @Override
    public boolean addScreeningSchedule(ScreeningSchedule screeningSchedule) {
        return screeningScheduleDao.addScreeningSchedule(screeningSchedule);
    }

    @Override
    public ScreeningSchedule getScreeningScheduleById(int id) {
        return screeningScheduleDao.getScreeningScheduleById(id);
    }

    @Override
    public boolean deleteScreen(int screenId) {
        return screeningScheduleDao.deleteScreen(screenId);
    }
}
